lcBlockRasterize Home

Exports block view into raster image file.

 BOOL lcBlockRasterize (
   HANDLE hBlock,
   LPCWSTR szFileName,
   double Xmin,
   double Ymin,
   double Xmax,
   double Ymax,
   int ImgW,
   int ImgH
 );

Parameters
hBlock
  Handle to a block object.
szFileName
  Filename of output image file. The filename extention defines the file format.
Litecad.dll supports only Windows BMP, but if the FreeImage.dll module exist in LiteCAD directory, you can specify many formats.
Xmin Ymin
  Left-bottom corner of the exported area.
Xmsx Ymax
  Right-top corner of the exported area.
ImgW ImgH
  Width and height of output image (pixels).
You can specify only one dimension and set zero for other, it will be calculated automatically, depend on the image proportions.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  If parameters Xmin, Ymin, Xmax, Ymax are zero, then the whole block extents will be exported.

See Also

  Code sample1,   Code sample2,   Code sample3,   lcBlockRasterizeMem,   LC_CMD_RASTERIZE